Skip to content

fix(tui): resolve /compact alias collision between compress alias and TUI display toggle (#57070) - #907

Open
hashbender wants to merge 1 commit into
mainfrom
mirror/pr-57131
Open

fix(tui): resolve /compact alias collision between compress alias and TUI display toggle (#57070)#907
hashbender wants to merge 1 commit into
mainfrom
mirror/pr-57131

Conversation

@hashbender

Copy link
Copy Markdown
Owner

Problem

PR NousResearch#57029 added "compact" as an alias for the compress command (CommandDef("compress", ..., aliases=("compact",))). This collided with the pre-existing /compact TUI display toggle in _TUI_EXTRA, causing commands.catalog RPC to return /compact twice with two different meanings:

  • As an alias for /compress ("Compress conversation context")
  • As a standalone TUI command ("Toggle compact display mode")

Impact: Clients that treat pairs entries and canon aliases as mutually exclusive crash on startup (e.g. fathah/hermes-desktop#802).

Changes

  1. Rename /compact TUI display toggle to /compact-ui in _TUI_EXTRA
  2. Dedup guard in commands.catalog handler: skip _TUI_EXTRA entries whose name already appears as a registered command or alias in canon
  3. Backward compat: settings.toggle and settings.get handlers accept both "compact" and "compact-ui" keys
  4. Autocomplete: update extras to use /compact-ui

Fixes NousResearch#57070


Mirror-of: NousResearch#57131
NousResearch#57131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New /compact alias for /compress (#57029) collides with legacy /compact TUI entry in commands.catalog

1 participant